using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace HeathCareSystem
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (Request.QueryString["Page"] != null)
            {
                String path = "";
                String opt = Request.QueryString["Page"].ToString();
                switch (opt)
                {
                    case "BenhNhanMoi":
                        path = "~/wuc/wucBenhNhanMoi.ascx";
                        break;
                    case "DangNhap":
                        path = "~/wuc/wucDangNhap.ascx";
                        break;
                    case "KetQuaBenhNhan":
                        path = "~/wuc/wucKetQuaBenhNhan.ascx";
                        break;
                    case "KetQuaXetNghiem":
                        path = "~/wuc/wucKetQuaXetNghiem.ascx";
                        break;
                    case "NguoiDungMoi":
                        path = "~/wuc/wucNguoiDungMoi.ascx";
                        break;
                    case "NhapBenhMoi":
                        path = "~/wuc/wucNhapBenhMoi.ascx";
                        break;
                    case "NhapXetNghiemMoi":
                        path = "~/wuc/wucNhapXetNghiemMoi.ascx";
                        break;
                    case "QuenMatKhau":
                        path = "~/wuc/wucQuenMatKhau.ascx";
                        break;
                    case "ThayDoiMatKhau":
                        path = "~/wuc/wucThayDoiMatKhau.ascx";
                        break;
                    case "ThemBenhAn":
                        path = "~/wuc/wucThemBenhAn.ascx";
                        break;
                    case "ThemDonViMoi":
                        path = "~/wuc/wucThemDonViMoi.ascx";
                        break;
                    case "ThemThuocMoi":
                        path = "~/wuc/wucThemThuocMoi.ascx";
                        break;
                    case "ThemToaThuoc":
                        path = "~/wuc/wucThemToaThuoc.ascx";
                        break;
                    case "ThemXetNghiem":
                        path = "~/wuc/wucThemXetNghiem.ascx";
                        break;
                    case "TimBenhNhan":
                        path = "~/wuc/wucTimBenhNhan.ascx";
                        break;
                    case "TimKiemBenh":
                        path = "~/wuc/wucTimKiemBenh.ascx";
                        break;
                    default:
                        path = "";
                        break;
                }
                if (path != "")
                {
                    phContent.Controls.Add(Page.LoadControl(path));
                }
            }

        }
    }
}